#define _CRT_SECURE_NO_WARNINGS 1

#include "Stack.h"

int main()
{
	ST st;
	InitST(&st);

	Push(&st, 1);
	Push(&st, 2);
	Push(&st, 3);

	printf("%d \n", STTop(&st));
	Pop(&st);

	Push(&st, 4);
	Push(&st, 5);
	Push(&st, 6);

	//printf("%d \n", STTop(&st));
	//Pop(&st);

	while (!STEmpty(&st))
	{
		printf("%d ", STTop(&st));
		Pop(&st);
	}
	printf("\n");

	DestroyST(&st);

	return 0;

}